// eslint-disable-next-line import/no-extraneous-dependencies
import { Init, Env, i18n, Sys } from '@furo/framework/src/furo.js';
import { BaseSpecValidators } from '@furo/framework/src/BaseSpecValidators/BaseSpecValidators.js';
import { Services, Types } from '../../../furo-specs/dist/env.js';

import { Translations } from './translations.js';

Env.api = {
  headers: [['Accept-Language', Env._acceptLanguage.join(',')]],
  services: {},
  specs: {},
};

Init.registerApiServices(Services);
Init.registerApiTypes(Types);
i18n.registerResBundle(Translations);
BaseSpecValidators.registerAll();
Init.translateStaticTypeMessages(Env.locale);

export class Tst {
  static getEnv() {
    return Env;
  }

  static getSys() {
    return Sys;
  }
}
